package net.lesscoding.feign;

import net.lesscoding.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.math.BigDecimal;

/**
 * @author eleven
 * @date 2025/4/16 14:00
 * @apiNote
 */
@FeignClient(name="account-service")
public interface AccountClient {

    @PostMapping("/account/deduct/{userId}/{money}")
    Result<Integer> deduct(@PathVariable("userId") String userId, @PathVariable("money") BigDecimal money);
}
